package util;

public class MiniDouble {
	private double _value;

	public MiniDouble(double value) {
		_value = value;
	}

	public MiniDouble() {
		_value = 0.0;
	}

	public double getValue() {
		return _value;
	}
	public int getIntValue(){
		return (int)_value;
	}
	
	public void setValue(double value){
		_value = value;
	}

	public void add(double toAdd) {
		_value = _value + toAdd;
	}

	public void increment() {
		_value = _value + 1.0;
	}
}
